﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace The_LarX
{
    public class Dummy : Component
    {
        public EditorRepresentation Representation;

        public string Name { get; set; }

        public Dummy(Renderer renderer, GameScreen gs)
            : base(gs)
        {
            Representation = new EditorRepresentation("Engine\\Models\\model_cube", renderer);
        }

        public override void Update()
        {
            base.Update();
            Representation.Update();
        }

        public override void Draw()
        {
            base.Draw();
            Representation.Draw();
        }

        public override void SerializeData()
        {
            base.SerializeData();
            Data.AddData("Dummy.Position", this.Representation.Position);
        }
        public override void DeserializeData()
        {
            base.DeserializeData();

            //Representation = new EditorRepresentation("Engine\\Models\\model_cube", renderer);
            Representation.Position = Data.GetData<Vector3>("Dummy.Position");
        }
    }
}
